// 文件上传下载
import request from '@/utils/request'
const FileApi = {
  //上传文件
  fileUpload (params) {
    const url = `/ftp/file/upload?moduleType=${params.moduleType}`
    return request.post(url, params.fd)
  },
  //文件下载
  fileDownload (fileId) {
    return request({
      url: `/ftp/file/download?fileId=${fileId}`,
      method: 'get',
    })
  },
  //文件url
  getUploadUrl (params) {
    const url = `/ftp/file/getUploadUrl?moduleType=${params.moduleType}`
    return request.post(url, params.fd)
  },

}
export default FileApi




